package top.usts.springframework.beans.factory.support;

import top.usts.springframework.beans.BeansException;
import top.usts.springframework.core.io.Resource;
import top.usts.springframework.core.io.ResourceLoader;

/**
 * @description:  Simple interface for bean definition readers.
 * @author: CJ
 * @date: 2022/2/22
 */
public interface BeanDefinitionReader {

    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resource) throws BeansException;

    void loadBeanDefinitions(String location) throws BeansException;

    void loadBeanDefinitions(String[] locations) throws BeansException;



}
